package com.czxy.service.impl;

import com.czxy.dao.TypeMapper;
import com.czxy.entity.TType;
import com.czxy.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class TypeServiceImpl implements TypeService {

    @Autowired
    private TypeMapper typeMapper;


    @Override
    public List<TType> findAll() {
        return typeMapper.selectAll();
    }
}
